package com.un.ebs.sys.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.un.ebs.core.metadata.DbField;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * (UserWx)表实体类
 *
 * @author liubo
 * @since 2020-10-30 22:45:47
 */
@Data
@Component
@TableName("sys_user_wx")
@SuppressWarnings("serial")
public class UserWx extends Model<UserWx> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;


    @DbField(name = "user_id", length = 40, precision = 0)
    private String userId;

    @DbField(name = "open_id", length = 40, precision = 0)
    private String openId;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @DbField(name = "head_image", length = 500, precision = 0)
    private String headImage;

    @DbField(name = "nickname", length = 100, precision = 0)
    private String nickname;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}